<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>实现简版vue</title>
</head>

<body>
  <div id="app">
    <p>{{name}}</p>
    <p k-text="name"></p>
    <p>{{age}}</p>
    <input type="text" k-model="name" />
    <button @click="changeName">呵呵</button>
    <div k-html="html"></div>
  </div>

  <!-- <script src="./js/compile.js"></script>
  <script src="./js/kvue.js"></script> -->
   <script src="./js/compile01.js"></script>
  <script src="./js/kvue01.js"></script>
  <script>
    const app = new Kvue({
      el: '#app',
      data: {
        name: '你好啊',
        age: 29,
        form: {
          siteId: ''
        }
      },
      created() {
        setTimeout(() => {
          this.name = '响应式测试'
        }, 1000);
      },
      method() {

      }
    })
  </script>
</body>

</html>